package com.onlineclass.beas;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class Course implements Serializable {

    private int id;
    private String cname;
    private int count;
    private String info;
    private int coursesum;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date starttime;
    private Type type;
    private int price;
    private CourseImg courseImg;


}
